home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0113.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  934 b   |  24 lines

  1.  
  2. > I run into a problem when coding my next game, hope somebody can help
  3. > me with this...
  4. > Now, this is a piece of code from my game:
  5. > Sam Loop On
  6. > Sam Play 1,1 
  7. > Sam Loop Off
  8. > Sam Play 2,2
  9. > I want to play a humming sound continuously on channel 1 and some
  10. > other samples like explosions and laser zaps on other channels.
  11. > But with the previous example the Sam Loop Off commands stops looping, so I 
  12. > only hear the humming sample once and then an explosion... Then if I
  13. > remove it the explosion sample will be played continuously.
  14.  
  15.     I think the solution will involve removing the Sam Loop Off statement
  16. and finding a way to stop other sound effects.  Isn't there a command to stop
  17. a channel from playing or something, or silence it?  turn the volume of the
  18. chanel down maybe?  Play a silent sample on the channel?  Otherwise perhaps
  19. you'll just have to not use Sam Loop and manually play it at regular intervals.
  20.  
  21.